package indi.luckly.service;

import indi.luckly.common.request.LoginRequestParams;
import indi.luckly.common.request.LogoutRequestParams;
import indi.luckly.common.request.RegisterRequestParams;
import indi.luckly.common.response.LoginResponseData;
import indi.luckly.common.response.LogoutResponseData;
import indi.luckly.common.response.RegisterResponseData;
import indi.luckly.common.response.ResponseResult;;
import indi.luckly.entity.UserEntity;

public interface ILoginService {
    /**
     * 注册接口
     *
     * @param registerRequestParams 注册请求参数
     * @return 注册返回结果
     */
    ResponseResult<RegisterResponseData> register(RegisterRequestParams registerRequestParams);

    /**
     * 登录接口
     *
     * @param loginRequestParams 登录请求参数
     * @return
     */
    ResponseResult<LoginResponseData> login(LoginRequestParams loginRequestParams);

    /**
     * 登出接口
     *
     * @param logoutRequestParams 登出请求参数
     * @return
     */
    ResponseResult<LogoutResponseData> logout(LogoutRequestParams logoutRequestParams);


    /**
     * 查询用户信息
     *
     * @param userId userId
     */
    ResponseResult<UserEntity> queryUserInfo(String userId);
}
